<div class="col-md-9">
  <div class="thumbnail">
    <h3 class="text-center">修改{$type}</h3>
    <h5 class="text-left"><a href="{:U(GROUP_NAME . '/Rbac/node')}" class="btn btn-info">返　回</a></h5>
    <hr>
    <form class="form-horizontal" role="form" method="post" action="{:U(GROUP_NAME . '/Rbac/modifyNodeHandle')}">
      <!-- 节点名称 -->
      <div class="form-group">
        <label for="name" class="col-sm-2 control-label">{$type}名称</label>
        <div class="col-sm-6">
          <input type="text" class="form-control" name="name" value="{$node['name']}">
        </div>
      </div>
      <!-- 描述 -->
      <div class="form-group">
        <label for="title" class="col-sm-2 control-label">{$type}描述</label>
        <div class="col-sm-6">
          <input type="text" class="form-control" name="title" value="{$node['title']}">
        </div>
      </div>

      <!-- 是否开启 -->
      <div class="form-group">
        <label class="col-sm-2 control-label">开启状态</label>
        <div class="col-sm-6">
          <if condition="$node.status">
            <div class="radio">
              <label><input type="radio" name="status" value="1" checked>&nbsp;开启</label>
            </div>
            <div class="radio">
              <label><input type="radio" name="status" value="0">&nbsp;关闭</label>
            </div>
          <else />
            <div class="radio">
              <label><input type="radio" name="status" value="1">&nbsp;开启</label>
            </div>
            <div class="radio">
              <label><input type="radio" name="status" value="0" checked>&nbsp;关闭</label>
            </div>
          </if>
        </div>
      </div>

      <!-- 详细描述 -->
      <div class="form-group">
        <label for="remark" class="col-sm-2 control-label">{$type}详细描述</label>
        <div class="col-sm-6">
          <textarea name="remark" class="form-control" rows="3" placeholder="详细描述...">{$node.remark}</textarea>
        </div>
      </div>

      <!-- 排序 -->
      <div class="form-group">
        <label for="sort" class="col-sm-2 control-label">排序</label>
        <div class="col-sm-6">
          <input type="text" class="form-control" name="sort" value="{$node.sort}">
        </div>
      </div>

      <!-- pid -->
      <div class="form-group">
        <label for="pid" class="col-sm-2 control-label">pid</label>
        <div class="col-sm-6">
          <input type="text" class="form-control" name="pid" value="{$node.pid}">
        </div>
      </div>

      <!-- level -->
      <div class="form-group">
        <label for="level" class="col-sm-2 control-label">level</label>
        <div class="col-sm-6">
          <input type="text" class="form-control" name="level" value="{$node.level}">
        </div>
      </div>
      <input type="hidden" name="id" value="{$node.id}">

      <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
          <button type="submit" class="btn btn-default">保存添加</button>
        </div>
      </div>
    </form>
  </div>
</div>